package com.apusic.service;

import java.util.List;

import com.apusic.dao.UserDao;
import com.apusic.entity.TUser;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.beans.factory.annotation.Qualifier;
import org.springframework.stereotype.Service;

/** 
 * @author 陈庆钊
 * @version 2017-11-6 下午4:22:42
 * @Email parkme210@126.com
 */
@Qualifier
@Service("userService")
public class UserService{
	
	@Autowired
	private UserDao userDao;

	public List<TUser> getUser() {
		return userDao.findUser();
	}
	
	public void updateUserStatus(Integer userId,String status) {
		userDao.updateUserStatus(userId,status);
	}
	

	public int saveUser(TUser user){
		
		return userDao.insert(user);
	}

	public List<TUser> selectByObj(TUser user) {
		return userDao.selectByObj(user);
	}

}
